<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<div class="row">
	<div class="col-lg-12 col-sm-12 col-xs-12">
		<div class="widget">
			<div class="widget-header bordered-bottom theme">
				<span class="widget-caption">预约课程\活动-${(editModel=='add')?string('新增','编辑')}</span>
				<div class="widget-buttons">
					<a href="#" data-toggle="collapse">
						<i class="fa fa-minus"></i>
					</a>
					<a href="#" data-toggle="maximize">
						<i class="fa fa-expand"></i>
					</a>
				</div>
			</div>
			<div class="widget-body">
				<div class="row">
					<form class="editForm" action="${saveUrl}" method="post" responseType="JSON" role="form" id="editForm_${serializeNum}"
						data-bv-submitButtons="#editFormSubmitBtn_${serializeNum}"
						data-bv-message="This value is not valid"
						data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
						data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
						data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
							<input type="hidden" name="id" value="${editEntity.id}">
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="type" class="col-sm-2 control-label no-padding-right">预约类型</label>
									<div class="col-sm-10">
										<input  data-bv-integer-message="The field is number" data-bv-message="The field is not valid" data-bv-integer="true" size="11" name="type" alt="预约类型 1 课程 2活动" id="type" placeholder="预约类型 1 课程 2活动" type="text" title="预约类型 1 课程 2活动" class="form-control"  value="${editEntity.type}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="name" class="col-sm-2 control-label no-padding-right">宝宝姓名</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="20" name="name" alt="宝宝姓名" id="name" placeholder="宝宝姓名" type="text" title="宝宝姓名" class="form-control"  value="${editEntity.name}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="contractPhone" class="col-sm-2 control-label no-padding-right">联系方式</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="11" name="contractPhone" alt="联系方式" id="contractPhone" placeholder="联系方式" type="text" title="联系方式" class="form-control"  value="${editEntity.contractPhone}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="age" class="col-sm-2 control-label no-padding-right">年龄</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="20" name="age" alt="年龄" id="age" placeholder="年龄" type="text" title="年龄" class="form-control"  value="${editEntity.age}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="courceOrActivityId" class="col-sm-2 control-label no-padding-right">课程或者活动id</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="32" name="courceOrActivityId" alt="课程或者活动id" id="courceOrActivityId" placeholder="课程或者活动id" type="text" title="课程或者活动id" class="form-control"  value="${editEntity.courceOrActivityId}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="parentId" class="col-sm-2 control-label no-padding-right">家长id</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="32" name="parentId" alt="家长id" id="parentId" placeholder="家长id" type="text" title="家长id" class="form-control"  value="${editEntity.parentId}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="disposeStatus" class="col-sm-2 control-label no-padding-right">处理状态</label>
									<div class="col-sm-10">
										<input  data-bv-integer-message="The field is number" data-bv-message="The field is not valid" data-bv-integer="true" size="11" name="disposeStatus" alt="处理状态" id="disposeStatus" placeholder="处理状态" type="text" title="处理状态" class="form-control"  value="${editEntity.disposeStatus}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="followUpRemark" class="col-sm-2 control-label no-padding-right">跟进备注</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="200" name="followUpRemark" alt="跟进备注" id="followUpRemark" placeholder="跟进备注" type="text" title="跟进备注" class="form-control"  value="${editEntity.followUpRemark}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (false && editModel=='add')||(false && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="createTime" class="col-sm-2 control-label no-padding-right">申请时间</label>
									<div class="col-sm-10">
										<span class="input-icon icon-left">
											<input data-bv-date-format="YYYY-MM-DD hh:mm:ss" data-bv-message="The field is not valid" data-bv-date-message="请正确输入一个时间" data-bv-date="true" size="19" name="createTime" alt="申请时间" id="createTime" placeholder="申请时间" type="text" title="申请时间" class="form-control form-control date-picker" onfocus="WdatePicker({doubleCalendar:true,dateFmt:'yyyy-MM-dd+HH:mm:ss'})"  value="${editEntity.createTime}"/>
											<i class="fa fa-calendar"></i>
										</span>
									</div>
								</div>
							</div>
							</#if>
							<#if (false && editModel=='add')||(false && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="version" class="col-sm-2 control-label no-padding-right">版本</label>
									<div class="col-sm-10">
										<input  data-bv-integer-message="The field is number" data-bv-message="The field is not valid" data-bv-integer="true" size="11" name="version" alt="版本" id="version" placeholder="版本" type="text" title="版本" class="form-control"  value="${editEntity.version}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
						<div class="col-sm-12">
							<input type="button" class="btn btn-default" data-dismiss="modal" value="返回" />
							<button type="submit" class="btn btn-blue" id="editFormSubmitBtn_${serializeNum}">保存</button>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="assets/js/validation/bootstrapValidator_init.js"></script>
<script>
$(".selectpicker_${serializeNum}").select2();
</script>